<?php

$htmlOutput = array();
$htmlOutput[] = '<div class="news view">';
$htmlOutput[] = sprintf('<h2>%s</h2>', __('News', true));
$htmlOutput[] = '	<dl>';
$i = 0; 
$class = ' class="altrow"';
$htmlOutput[] = sprintf('<dt %s> %s </dt>', ($i % 2 == 0)?$class:false, __('Id', true));
$htmlOutput[] = sprintf('<dd %s>', ($i++ % 2 == 0)?$class:false);
$htmlOutput[] =             $news['News']['id'];
$htmlOutput[] = '			&nbsp;';
$htmlOutput[] = '		</dd>';
$htmlOutput[] = sprintf('<dt %s> %s </dt>', ($i % 2 == 0)?$class:false, __('Title', true));
$htmlOutput[] = sprintf('<dd %s>', ($i++ % 2 == 0)?$class:false);
$htmlOutput[] =             $news['News']['title'];
$htmlOutput[] = '			&nbsp;';
$htmlOutput[] = '		</dd>';
$htmlOutput[] = sprintf('<dt %s> %s </dt>', ($i % 2 == 0)?$class:false, __('Introduction', true));
$htmlOutput[] = sprintf('<dd %s>', ($i++ % 2 == 0)?$class:false);
$htmlOutput[] =             $news['News']['introduction'];
$htmlOutput[] = '			&nbsp;';
$htmlOutput[] = '		</dd>';
$htmlOutput[] = sprintf('<dt %s> %s </dt>', ($i % 2 == 0)?$class:false, __('Keywords', true));
$htmlOutput[] = sprintf('<dd %s>', ($i++ % 2 == 0)?$class:false);
$htmlOutput[] =             $news['News']['keywords'];
$htmlOutput[] = '			&nbsp;';
$htmlOutput[] = '		</dd>';
$htmlOutput[] = sprintf('<dt %s> %s </dt>', ($i % 2 == 0)?$class:false, __('Body', true));
$htmlOutput[] = sprintf('<dd %s>', ($i++ % 2 == 0)?$class:false);
$htmlOutput[] =             $news['News']['body'];
$htmlOutput[] = '			&nbsp;';
$htmlOutput[] = '		</dd>';
$htmlOutput[] = sprintf('<dt %s> %s </dt>', ($i % 2 == 0)?$class:false, __('Image', true));
$htmlOutput[] = sprintf('<dd %s>', ($i++ % 2 == 0)?$class:false);
$htmlOutput[] =             $news['News']['image'];
$htmlOutput[] = '			&nbsp;';
$htmlOutput[] = '		</dd>';
$htmlOutput[] = sprintf('<dt %s> %s </dt>', ($i % 2 == 0)?$class:false, __('Created', true));
$htmlOutput[] = sprintf('<dd %s>', ($i++ % 2 == 0)?$class:false);
$htmlOutput[] =             $news['News']['created'];
$htmlOutput[] = '			&nbsp;';
$htmlOutput[] = '		</dd>';
$htmlOutput[] = sprintf('<dt %s> %s </dt>', ($i % 2 == 0)?$class:false, __('Modified', true));
$htmlOutput[] = sprintf('<dd %s>', ($i++ % 2 == 0)?$class:false);
$htmlOutput[] =             $news['News']['modified'];
$htmlOutput[] = '			&nbsp;';
$htmlOutput[] = '		</dd>';
$htmlOutput[] = sprintf('<dt %s> %s </dt>', ($i % 2 == 0)?$class:false, __('User', true));
$htmlOutput[] = sprintf('<dd %s>', ($i++ % 2 == 0)?$class:false);
$htmlOutput[] =             $news['News']['user_id'];
$htmlOutput[] = '			&nbsp;';
$htmlOutput[] = '		</dd>';
$htmlOutput[] = '	</dl>';
$htmlOutput[] = '</div>';
$htmlOutput[] = '<div class="actions">';
$htmlOutput[] = '	<ul>';
$htmlOutput[] = sprintf('<li>%s</li>', $html->link(__('Edit News', true), array('action'=>'edit', $news['News']['id'])));
$htmlOutput[] = sprintf('<li>%s</li>', $html->link(__('Delete News', true), array('action'=>'delete', $news['News']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $news['News']['id'])));
$htmlOutput[] = sprintf('<li>%s</li>', $html->link(__('List News', true), array('action'=>'index')));
$htmlOutput[] = '	</ul>';
$htmlOutput[] = '</div>';

echo implode("\n", $htmlOutput);

?>